package com.zzg.srb.rabbitutil.config;

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author zhengzg
 * @Date 2022/10/2 18:12
 * @Version 1.0
 */
@Configuration
public class MQConfig {

    @Bean
    public MessageConverter messageConverter() {
        // json字符串转换器
        return new Jackson2JsonMessageConverter();
    }
}
